﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RequisitionView.aspx.cs" Inherits="RequisitionView" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style>
A:link 		{color: #000000; text-decoration:none}
A:visited 	{color: #000000; text-decoration:none}
A:active 	{color: #000000; text-decoration:none}
A:hover 	{
	color: #F99D1C;
	text-decoration:none
}
    </style>
</head>
<body style="margin: 0; padding: 0">
  <form id="form1" runat="server" method="post">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <table align="left" cellpadding="2" cellspacing="2" style="border-style: none" width="710px">
        <tr>
            <td align="left" style="font-family: Arial; font-size: small">
                <asp:HyperLink ID="lblPositionListing" runat="server" 
                    NavigateUrl="RequisitionListing.aspx" ForeColor="#F99D1C">Position Listing</asp:HyperLink>
                &nbsp;<asp:Image ID="imgArrow" runat="server" ImageUrl="~/images/Arrow.png" 
                    ImageAlign="AbsMiddle" />
                &nbsp;<asp:Label ID="lblTitle" runat="server" ForeColor="#999999"></asp:Label>
                <br />
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" style="font-family: Arial; font-size: small">

                <telerik:RadGrid ID="RadGrid1" Width="650px" DataSourceID="SqlDataSource1" 
                    ShowHeader="false" runat="server" AutoGenerateColumns="false">
                    <MasterTableView>
                        <Columns>
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn" ItemStyle-Font-Names="Tahoma" ItemStyle-Font-Size="XX-Small">
                        <ItemTemplate>
                        <table style="font-family:arial, tahoma, verdana;font-size:9pt;" border="0" cellpadding="10" cellspacing="1" width="650px" >
                                <tr>
                                    <td nowrap valign="top">
                                        Posting Date: <%# Eval("ModifiedDate", "{0:dd/MM/yyyy}")%>
                                        <h3><b><%# Server.UrlDecode(Eval("JobTitleCode").ToString())%></b></h3>
                                    </td>
                                    <td nowrap align="right">
                                    </td>
                                </tr>
                        </table>
                        <table style="font-family:arial, tahoma, verdana;font-size:9pt;" border="0" cellpadding="10" cellspacing="1" width="650px" >
                                <tr>
                                    <td>
                                        [<%# Eval("CompanyCode")%>,
                                        <%# Eval("Location")%>]<p></p>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Key Responsibilities</b>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Responsibilities")%>'></asp:Literal><p></p>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Requirements</b>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Literal ID="Label1" runat="server" Text='<%# Eval("Requirements")%>'></asp:Literal>
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

            </td>
        </tr>
        <tr>
            <td align="center">

                <asp:Button ID="btnApply" runat="server" Text="Apply Now" Width="200" 
                    onclick="btnApply_Click">
                </asp:Button>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SRM %>"
                    SelectCommand="SRM_GETREQUISITIONVIEW_SP" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:QueryStringParameter DefaultValue="" Name="RequisitionKey" QueryStringField="pos"
                            Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>

            </td>
        </tr>
    </table>
    </form>
</body>
</html>
